﻿@import "../_theme";

#page-wraper {
    margin-bottom:1rem;
    &.no-order {
        height: 100%;
        text-align: center;

        & > h3 {
            position: absolute;
            height: 96px;
            top: 50%;
            margin-top: 0;
            width:100%;
        }

        &:after {
            content: '';
            position: absolute;
            height: 96px;
            width: 96px;
            top: 50%;
            left: 50%;
            margin-top: -96px;
            margin-left: -48px;
            display: inline-block;
            background-image: url('/UI/imgs/icon-tags.png');
            background-repeat: no-repeat;
            background-position: -230px -115px;
        }
    }
}

#page-head {
    width: 100%;
}

#page-title {
    color: $ClrTheme;
    margin: 10px 0;

    & > div {
        & > i {
            font-size: 5rem;
            float: left;
            margin-right: 10px;
        }

        & > h6 {
            color: lighten($ClrThemeTxt,40);
        }
    }
}

#page-body{
    margin-bottom:2rem;
}

.field-title {
    font-size: 80%;
    color: lighten($ClrThemeTxt,30);
}

#ord-head {
    background-color: $ClrMsg;
    border: 1px solid $ClrMsgBorder;
    padding: 5px;

    &.aborted{
        background-color:lighten($ClrImportant,15);
        color:white;
    }
}

#ord-main-action{
    text-align:right;
    padding:1rem 0;
}

.auto-full-height {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}

.v-center-wraper {
    display: table;
    height: 100%;
    width: 100%
}

#ord-status {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    font-size: 2rem;
    font-weight: bold;

    &.Active {
        color: $ClrOk;
    }

    &.Pending {
        color: $ClrFocus;
    }

    &.Completed {
        color: $ClrDisable;
    }
}

#confirm-order {
    width: 100%;
    height: 100%;
}

.ord-attachment-box {
    padding-top: 5px;
    width: 100%;
    clear: left;

    & > .Obj-Attachment {
        width: 33%;
    }
}

#add-contract {
    background: #fff;
    cursor: pointer;
    border: 1px dashed $ClrThemeTxt;
    text-align: center;

    & > .cont_tit {
        color: $ClrThemeTxt;
        margin-top:10px;
    }

    & > .cont_tip {
        color: $ClrErr;
    }
}

.Tabs {
    font-weight: bold;
    color: lighten($ClrThemeTxt,20);

    & > span {
        padding: 1rem 2rem;
        display: inline-block;

        &.active {
            //background-color: $ClrThemeHotTxt;
            color: $ClrTheme;
            //box-shadow: 0 0 5px 0 $ClrTheme;
        }
    }

    & > .tab-hover {
        border: none;
        height: 100%;
        background-color: white;
        top: 0;
        z-index: -1;
        box-shadow: 0px 5px 0px 0px white, 0 0 3px 0 $ClrTheme;
    }

    &.aborted {
        & > .tab-hover {
            background-color: transparent;
            box-shadow: 0px 5px 0px 0px $ClrControllerBk, 0 0 3px 0 lighten($ClrImportant,15);
        }
    }
}

.ord-view {
    min-height: 50rem;
    height: auto;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: 0 0 3px 0 $ClrTheme;
        z-index: -2;
        background-color: white;
    }

    &.aborted {
        color:rgba(215, 210, 210, 0.80);
        &::before {
            box-shadow: 0 0 3px 0 lighten($ClrImportant,15);
            background-color: transparent;
        }
    }
}

.ov-logs{
    max-height:80rem;
    overflow-y:auto;
    margin:5px;
}

.order_list {
    margin: 20px 0 0 0;
}

.num{
    width:2rem;
}
.brand {
    width: 4rem;
}
.name {
    width: 8rem;
}
.price,.count {
    width: 6rem;
}
.amount{
    width:7rem;
}
.model{
    width:11rem;
}
.spec {
    width: 12rem;
}
.memo {
    width: 6rem;
    & > span {
        display: block;
        max-height: 5rem;
        overflow: hidden;
    }
}